﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;

namespace Bussiness
{
    public interface IATMSystemBussiness
    {
        Card ReadCard(Guid cardNumber);

        bool Validate(string cardID);

        int ChangePIN(string cardID, string newPIN);

        /// <summary>
        /// DispenseMoney
        /// </summary>
        /// <param name="amount"></param>
        /// <returns></returns>
        bool DispenseMoney(float amount);

        // <summary>
        /// Kiểm tra tài khoản có rút được tiền hay không
        /// </summary>
        /// <param name="account">The account.</param>
        /// <param name="amount">Số tiền muốn rút</param>
        /// <returns>True or False </returns>
        bool CheckCheckingAccount(CheckingAccount checkAccount, float amount);

        /// <summary>
        /// Withdraw money
        /// </summary>
        /// <param name="amount"></param>
        /// <param name="account"></param>
        /// <returns></returns>
        bool WithdrawMoney(float amount, CheckingAccount checkAccount, bool isPrintRecept);
    }
}
